<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="layout" content="main"/>
<title>What's up??</title>
<g:javascript library="prototype"></g:javascript>
</head>
<body id="index">
 <div id="searchBox">
 <g:form controller="searchable">
 <strong>Find People:</strong>
 <g:textField name="q"></g:textField>
 </g:form>
 </div>
  <h1 id="test">What's up?</h1>
 
  <div id="updateForm">
  <g:formRemote name="messageForm" update="messages" url="[action:'update']">
  <g:textArea name="message"></g:textArea><br>
  <g:submitButton name="update" value="Update"></g:submitButton>
  <g:actionSubmit value="Some update label" action="update" />
  </g:formRemote>
  </div>
  <div id="messages">
  <g:render template="message" var="status" collection="${messages}"></g:render>
  </div>
</body>
</html>